package com.fenyin.samples.study.jvm.gc;  
/**
 * VM args:
 *@Title:  
 *@Description:大对象直接进入老年代  
 *@Author:fengzhichao  
 *@Since:2012-8-25  
 *@Version:1.1.0
 */
public class BigObjAllocation {
	
	private static int _1MB = 1024*1024;

	public static void main(String[] args){
		byte[] allocation1 = new byte[4*_1MB];
		
//		Heap
//		 def new generation   total 9216K, used 507K [0x326f0000, 0x330f0000, 0x330f0000)
//		  eden space 8192K,   6% used [0x326f0000, 0x3276eef0, 0x32ef0000)
//		  from space 1024K,   0% used [0x32ef0000, 0x32ef0000, 0x32ff0000)
//		  to   space 1024K,   0% used [0x32ff0000, 0x32ff0000, 0x330f0000)
//		 tenured generation   total 10240K, used 4096K [0x330f0000, 0x33af0000, 0x33af0000)
//		   the space 10240K,  40% used [0x330f0000, 0x334f0010, 0x334f0200, 0x33af0000)
//		 compacting perm gen  total 12288K, used 372K [0x33af0000, 0x346f0000, 0x37af0000)
//		   the space 12288K,   3% used [0x33af0000, 0x33b4d0c8, 0x33b4d200, 0x346f0000)
//		    ro space 10240K,  54% used [0x37af0000, 0x3806c510, 0x3806c600, 0x384f0000)
//		    rw space 12288K,  55% used [0x384f0000, 0x38b8fb78, 0x38b8fc00, 0x390f0000)

	}
}
